from setuptools import setup

# 通过 `pip install -e .`安装的依赖项列表
# by virtue of the Setuptools `install_requires` value below.
requires = [
    'deform',
    'pyramid',
    'pyramid_jinja2',
    'pyramid_tm',
    'sqlalchemy',
    'waitress',
    'zope.sqlalchemy',
    'pymysql'
]

# 通过 `pip install -e ".[dev]"`安装的依赖项列表
# 通过 Python 中的 Setuptools `extras_require` 值
# dictionary below.
dev_requires = [
    'pyramid_debugtoolbar',
    'pytest',
    'webtest',
]

setup(
    name='dbApp',
    install_requires=requires,
    extras_require={
        'dev': dev_requires
    },
    entry_points={
        # 告诉Pyramid WSGi应用程序的位置。
        'paste.app_factory': [
            'main = dbApp:main'
        ],
        'console_scripts': [
            'initialize_dbApp_db = dbApp.initialize_db:main'
        ],
    },
)
